package com.tlgen.orm.support.chain;

import com.tlgen.orm.components.rest.model.RequestMethodAndUrl;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

// 执行阶段接口
public interface ExecutionStage {

    boolean shouldExecute(RequestMethodAndUrl requestMethodAndUrl);

    Object execute(HttpServletRequest request,
                   RequestMethodAndUrl requestMethodAndUrl,
                   Map<String, Object> params,
                   Object previousResult) throws Exception;

    boolean shouldTerminate();


}
